package aenbike.main.model.entities;

import com.desandroid.framework.ada.Entity;
import com.desandroid.framework.ada.annotations.Table;
import com.desandroid.framework.ada.annotations.TableField;

/**
 * 
 * @author mario
 * Relationship betwen points
 */

@Table(name="tConnect")
public class Connect extends Entity{

	@TableField(name = "distance", datatype = Entity.DATATYPE_REAL)
	public long dist = 0;
	
	//@TableField(name = "p2", datatype = Entity.DATATYPE_INTEGER, isPrimaryKey = true)
	//public Integer p2 = 0;
	
	@TableField(name = "point1", datatype = DATATYPE_ENTITY_REFERENCE, isPrimaryKey = true)
	public Point point1;
	
	@TableField(name = "point2", datatype = DATATYPE_ENTITY_REFERENCE, isPrimaryKey = true)
	public Point point2;
	
	
}